package com.qifan.energy.mvp.model;

import com.qifan.energy.mvp.callback.ICallBack;

import java.util.Map;

/**
 * @author : FangShiKang
 * @date : 2020/04/11.
 * email : fangshikang@outlook.com
 * desc :   Model层 ,   接口回调方法
 */
public interface IModel {


    /**
     * Get请求
     * @param url
     * @param clazz
     * @param callBack
     */
    void onGetData(String url, Class clazz, ICallBack callBack);

    /**
     * post
     * @param url
     * @param map
     * @param clazz
     * @param callBack
     */
    void onPostData(String url, Map<String, String> map, Class clazz, ICallBack callBack);


}
